# -*- coding: utf-8 -*-

#
# Prepare:
# 1. pyrcc4 resources.qrc > resources_rc.py && pyuic4 main.ui > maingui.py

# Build:
# o python setup.py sdist --formats=zip
# o python setup.py py2exe

import os
from distutils.core import setup
try:
  import py2exe
  extra = {'windows':['webcurves.py'],
           'options': { 'py2exe' : {
                                     'optimize': 2,
                                     'includes': ['sip', 'socket',  'PyQt4.QtNetwork'], # list of modules to include
                                     'excludes':[], #list of module names to exclude
                                     'dll_excludes':[], #list of dlls to exclude
                                     'ignores':[],# list of modules to ignore if they are not found
                                    }
                       }
           }
except ImportError:
  PY2EXE=False
  extra = {}

import webcurves

setup(name="webcurves",
      version=webcurves.__version__, 
      description=webcurves.__doc__,
      author="Håvard Gulldahl",
      author_email="havard@gulldahl.no",
      scripts=["webcurves.py",],
      license=webcurves.__license__,
      url="http://kode.lurtgjort.no/",
      #long_description=file(os.path.split(os.path.realpath(sys.argv[0]))[0] + "/README").read(),
      #install_requires = ['docutils>=0.3', 'reportlab'],
      #zip_safe=False,
      #include_package_data = True,
          #entry_points = {
        #'console_scripts': [
            #'faktura_cli = faktura:cli_faktura',
        #],
     #}
      **extra
     )
